package com.example.goodpet.db.entity;

import androidx.room.Entity;
import androidx.room.Ignore;

import org.jetbrains.annotations.NotNull;

import java.util.Date;

@Entity(tableName = "goodpet_history", primaryKeys = {"userId","petId"})
public class GoodpetHistory {
    @NotNull
    //private long id;
    private long userId;
    @NotNull
    private long petId;
    private String postdate;
    @Ignore
    @Override
    public String toString() {
        return "GoodpetHistory{" +
                "userId=" + userId +
                ", petId=" + petId +
                ", postdate='" + postdate + '\'' +
                '}';
    }


    public long getUserId() {
        return userId;
    }

    public void setUserId(@NotNull long userId) {
        this.userId = userId;
    }


    public long getPetId() {
        return petId;
    }

    public void setPetId(@NotNull long petId) {
        this.petId = petId;
    }

    public String getPostdate() {
        return postdate;
    }

    public void setPostdate(String postdate) {
        this.postdate = postdate;
    }
}
